package com.up.vms.domain.vm.repository;

import com.up.vms.domain.vm.entity.Category;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface CategoryRepository extends JpaRepository<Category, Long>, JpaSpecificationExecutor<Category> {
    Page<Category> findAllByCategoryLike(String category, Pageable pageable);

    Page<Category> findAllByStatus(Integer code, Pageable pageable);
}
